﻿<Window x:Class="CPPEI.BD.VMTool.Views.SolutionConfigWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SolutionConfigWindow"  Height="350" Width="525"  WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush  EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFBAE4FF" Offset="0" />
                <GradientStop Color="#FF398FDF" Offset="0.41800001263618469" />
                <GradientStop Color="#FF006DD4" Offset="0.418" />
                <GradientStop Color="#FF0A3E69" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>

        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <ToolBarPanel Orientation="Horizontal" Grid.Row="0">
            <Button x:Name="_ctlAdd" Content="添加" Margin="2" Click="_ctlAdd_Click" Width="50" Height="25"></Button>
          
        </ToolBarPanel>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <DataGrid x:Name="_ctlDataGridSolution" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" SelectedCellsChanged="_ctlDataGridSolution_SelectedCellsChanged">
                <DataGrid.Background>
                    <LinearGradientBrush  EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFBAE4FF" Offset="0" />
                        <GradientStop Color="#FF398FDF" Offset="0.41800001263618469" />
                        <GradientStop Color="#FF006DD4" Offset="0.418" />
                        <GradientStop Color="#FF0A3E69" Offset="1" />
                    </LinearGradientBrush>
                </DataGrid.Background>

                <DataGrid.Columns>
                    <DataGridTextColumn Header="方案名称" Binding="{Binding Name}" x:Name="_ctlDTCName"  Width="auto"/>
                    <DataGridTextColumn Header="方案说明" Binding="{Binding Caption}"  Width="*" x:Name="_ctlDTCCaption"/>
                    <DataGridTemplateColumn Header="操作" Width="auto">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                <Button x:Name="_ctlEdit" Content="修改" Margin="2" Click="_ctlEdit_Click" Width="50" Height="25"></Button>
                                <Button x:Name="_ctlDelete" Content="删除" Margin="2" Click="_ctlDelete_Click" Width="50" Height="25"></Button>
                                </StackPanel>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>

                    </DataGridTemplateColumn>
                </DataGrid.Columns>
               
            </DataGrid>
            <DataGrid x:Name="_ctlDataGridVideMatrix" Grid.Column="1" AutoGenerateColumns="False" IsReadOnly="True" Width="auto">
                <DataGrid.Background>
                    <LinearGradientBrush  EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFBAE4FF" Offset="0" />
                        <GradientStop Color="#FF398FDF" Offset="0.41800001263618469" />
                        <GradientStop Color="#FF006DD4" Offset="0.418" />
                        <GradientStop Color="#FF0A3E69" Offset="1" />
                    </LinearGradientBrush>
                </DataGrid.Background>
                <DataGrid.Columns>
                    <DataGridTextColumn Header="视频矩阵" Binding="{Binding VideoMatrixId}"/>
                    <DataGridTextColumn Header="视频源" Binding="{Binding VideoSourceId}"/>
                </DataGrid.Columns>
            </DataGrid>
        </Grid>
      
        <!--<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="_ctlSave" Content="保存" Margin="2" Click="_ctlSave_Click" Width="50" Height="25"/>
            <Button x:Name="_ctlCanle" Content="取消" Margin="2" Click="_ctlCanle_Click" Width="50" Height="25"/>
        </StackPanel>-->
    </Grid>
</Window>
